package com.xinhuajs.articlemg.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinhuajs.articlemg.dao.IRecordDAO;
import com.xinhuajs.articlemg.pojo.Article;
import com.xinhuajs.articlemg.service.IRecordService;

@Service("recordService")
public class RecordServiceImpl implements IRecordService {
	@Autowired
	private IRecordDAO recordDAO;

	@Override
	public List<Article> limit(int startIndex, int pageSize) {
		// TODO Auto-generated method stub
		return recordDAO.limit(startIndex, pageSize);
	}

	@Override
	public int selectCount() {
		// TODO Auto-generated method stub
		return recordDAO.selectCount();
	}

}
